Discussion:
Mojolicious - how to shut off logging?
(too old to reply)
Lance Gropper
2013-10-22 23:50:56 UTC
Permalink
Hello Allan:

For some reason, I seem to be missing something:

MOJO_LOG_LEVEL can not be found as an environment variable. Also, the doc
doesn't say how to shut off the log - it only shows how to manually create
additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?

Lance


On Tue, Oct 22, 2013 at 11:08 AM, Allan Cochrane
Hi,
the environment variable MOJO_LOG_LEVEL might help here, it can control
the logger level. Alternatively make a directory called 'log' from where
you start morbo and it *ought* to write to a development.log file in that
directory.
allan
Got a different type of question: My app is running in real-time - this
causes a lot of morbo info and debug messages - is there a way to disable
the messages?
Lance
Problem was my bad - the original PERL variable assignment was in an if
statement that wasn't evaluating correctly for some other reason (value
that probably needed to be chopped). Thanks again guys.
Wait - I think I found the problem...Still checking...
I tried converting it to a string - also made no difference...
No difference...
Lance
On Wed, Oct 16, 2013 at 10:58 AM, áÌÅËÓÁÎÄÒ çÒÏÛÅ× <
Try
left: <%= $model =%>%
Works fine in the HTML code, just doesn't seem to work in the CSS
code. Also, I tried a different approach which didn't work for some reason.
I tried putting all of the PERL code outside of the __DATA__, then using it
to generate the HTML, putting it all into a single string and putting that
into the data statement - that also didn't work, but it was too complicated
to figure out why. The reason I was doing that is I wanted to make my code
run under Mojo, as well as Webmin.
On Wed, Oct 16, 2013 at 10:50 AM, Stefan Adams <
On Wed, Oct 16, 2013 at 12:47 PM, Lance Gropper <
There's no space between the 80 and the %, and I tried it with
<%= $model %> % (with space) - no difference.
There should be no space, to my knowledge. So that's bizarre that
it isn't working. I was thinking maybe there was a space and that was
keeping it from working.
On Wed, Oct 16, 2013 at 10:45 AM, Stefan Adams <
On Wed, Oct 16, 2013 at 12:43 PM, Lance Gropper <
I have another question: I'm trying to alter CSS code in mojo
left: 80%
left: <%= $model %>%
What did I do wrong?
Look at the source... Is there a space between 80 and % ?
--
You received this message because you are subscribed to a topic in
the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
**topic/mojolicious/1nEI90NiWj4/**unsubscribe<https://groups.google.com/d/topic/mojolicious/1nEI90NiWj4/unsubscribe>
.
To unsubscribe from this group and all its topics, send an email
Visit this group at http://groups.google.com/**group/mojolicious<http://groups.google.com/group/mojolicious>
.
For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
.
--
*This** e-mail and any attachments are intended only for use by
the addressee(s) named herein and may contain confidential information. If
you are not the intended recipient of **this** e-mail, you are
hereby notified any dissemination, distribution or copying of **
this** **email** and any attachments is strictly prohibited. If
you receive **this** **email** in error, please immediately notify
the sender by return **email** and permanently delete the
original, any copy and any printout thereof. The integrity and security of
e-mail cannot be guaranteed. If this email has been forwarded, it may have
been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google
Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it,
Visit this group at http://groups.google.com/**group/mojolicious<http://groups.google.com/group/mojolicious>
.
For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
.
--
You received this message because you are subscribed to a topic in
the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/**
topic/mojolicious/1nEI90NiWj4/**unsubscribe<https://groups.google.com/d/topic/mojolicious/1nEI90NiWj4/unsubscribe>
.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/**group/mojolicious<http://groups.google.com/group/mojolicious>
.
For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **
email** and any attachments is strictly prohibited. If you receive **
this** **email** in error, please immediately notify the sender by
return **email** and permanently delete the original, any copy and
any printout thereof. The integrity and security of e-mail cannot be
guaranteed. If this email has been forwarded, it may have been altered,
invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **
email** and any attachments is strictly prohibited. If you receive **
this** **email** in error, please immediately notify the sender by
return **email** and permanently delete the original, any copy and
any printout thereof. The integrity and security of e-mail cannot be
guaranteed. If this email has been forwarded, it may have been altered,
invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email
** and any attachments is strictly prohibited. If you receive **this**
**email** in error, please immediately notify the sender by return **
email** and permanently delete the original, any copy and any printout
thereof. The integrity and security of e-mail cannot be guaranteed. If this
email has been forwarded, it may have been altered, invalidating the
content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email*
* and any attachments is strictly prohibited. If you receive **this** **
email** in error, please immediately notify the sender by return **email
** and permanently delete the original, any copy and any printout
thereof. The integrity and security of e-mail cannot be guaranteed. If this
email has been forwarded, it may have been altered, invalidating the
content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email** and
any attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/1nEI90NiWj4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Allan Cochrane
2013-10-23 14:19:44 UTC
Permalink
Post by Lance Gropper
MOJO_LOG_LEVEL can not be found as an environment variable. Also, the doc
doesn't say how to shut off the log - it only shows how to manually create
additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?
Lance
Hi,

You have to set the MOJO_LOG_LEVEL env, var. before starting morbo, try

export MOJO_LOG_LEVEL=fatal

in your shell, that should turn off all but fatal errors.

Alternatively, you can create a new instance of a logger and tell the
application to use it:

my $log = Mojo::Log->new(path => '/var/log/mojo.log', level => 'fatal'); # new log instance
$self->log($log); # tell app to use new log instance


I suppose if you wanted to turn off logging completely you could set the
path to /dev/null, but I find that the messages from morbo are useful
during development. You should probably look at hypnotoad for use in
production.

Allan
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Statue
2013-10-23 15:13:06 UTC
Permalink
Doing an export MOJO_LOG_LEVEL=fatal, then starting Mojo:

Server available at http://127.0.0.1:80.
[***@raidix ~]# [Wed Oct 23 08:10:55 2013] [debug] Your secret passphrase
needs to be changed!!!
[Wed Oct 23 08:10:55 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:55 2013] [debug] Rendering template "index.html.ep" from
DATA section.
Variable "@splitter" is not available at (eval 232) line 258.
[Wed Oct 23 08:10:55 2013] [debug] 200 OK (0.026958s, 37.095/s).
[Wed Oct 23 08:10:56 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:56 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:56 2013] [debug] 200 OK (0.012572s, 79.542/s).
[Wed Oct 23 08:10:57 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:57 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:57 2013] [debug] 200 OK (0.012591s, 79.422/s).
[Wed Oct 23 08:10:58 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:58 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:58 2013] [debug] 200 OK (0.012799s, 78.131/s).
[Wed Oct 23 08:10:59 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:59 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:59 2013] [debug] 200 OK (0.019006s, 52.615/s).
[Wed Oct 23 08:11:00 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:00 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:11:00 2013] [debug] 200 OK (0.022975s, 43.526/s).
[Wed Oct 23 08:11:01 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:01 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.

...and on...and on...I got the idea from the documentation that when you
set the log level to a particular value, it shows all messages below that
level - i.e. fatal shows debug messages, info messages, etc. What I need is
to know how to now show any messages whatsoever...

Lance
Post by Allan Cochrane
Post by Lance Gropper
MOJO_LOG_LEVEL can not be found as an environment variable. Also, the doc
doesn't say how to shut off the log - it only shows how to manually create
additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?
Lance
Hi,
You have to set the MOJO_LOG_LEVEL env, var. before starting morbo, try
export MOJO_LOG_LEVEL=fatal
in your shell, that should turn off all but fatal errors.
Alternatively, you can create a new instance of a logger and tell the
my $log = Mojo::Log->new(path => '/var/log/mojo.log', level => 'fatal'); # new log instance
$self->log($log); # tell app to use new log instance
I suppose if you wanted to turn off logging completely you could set the
path to /dev/null, but I find that the messages from morbo are useful
during development. You should probably look at hypnotoad for use in
production.
Allan
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Lance Gropper
2013-10-23 15:19:45 UTC
Permalink
When I try the second method, I get errors indicating $self is not defined
or requires a package name.

Lance
Post by Statue
Server available at http://127.0.0.1:80.
passphrase needs to be changed!!!
[Wed Oct 23 08:10:55 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:55 2013] [debug] Rendering template "index.html.ep" from
DATA section.
[Wed Oct 23 08:10:55 2013] [debug] 200 OK (0.026958s, 37.095/s).
[Wed Oct 23 08:10:56 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:56 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:56 2013] [debug] 200 OK (0.012572s, 79.542/s).
[Wed Oct 23 08:10:57 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:57 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:57 2013] [debug] 200 OK (0.012591s, 79.422/s).
[Wed Oct 23 08:10:58 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:58 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:58 2013] [debug] 200 OK (0.012799s, 78.131/s).
[Wed Oct 23 08:10:59 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:59 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:59 2013] [debug] 200 OK (0.019006s, 52.615/s).
[Wed Oct 23 08:11:00 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:00 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:11:00 2013] [debug] 200 OK (0.022975s, 43.526/s).
[Wed Oct 23 08:11:01 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:01 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
...and on...and on...I got the idea from the documentation that when you
set the log level to a particular value, it shows all messages below that
level - i.e. fatal shows debug messages, info messages, etc. What I need is
to know how to now show any messages whatsoever...
Lance
Post by Allan Cochrane
Post by Lance Gropper
MOJO_LOG_LEVEL can not be found as an environment variable. Also, the
doc doesn't say how to shut off the log - it only shows how to manually
create additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?
Lance
Hi,
You have to set the MOJO_LOG_LEVEL env, var. before starting morbo, try
export MOJO_LOG_LEVEL=fatal
in your shell, that should turn off all but fatal errors.
Alternatively, you can create a new instance of a logger and tell the
my $log = Mojo::Log->new(path => '/var/log/mojo.log', level => 'fatal'); # new log instance
$self->log($log); # tell app to use new log instance
I suppose if you wanted to turn off logging completely you could set the
path to /dev/null, but I find that the messages from morbo are useful
during development. You should probably look at hypnotoad for use in
production.
Allan
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Александр Грошев
2013-10-23 15:25:36 UTC
Permalink
You must define $self. Learn perl!
Post by Lance Gropper
When I try the second method, I get errors indicating $self is not defined
or requires a package name.
Lance
Post by Statue
Server available at http://127.0.0.1:80.
passphrase needs to be changed!!!
[Wed Oct 23 08:10:55 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:55 2013] [debug] Rendering template "index.html.ep"
from DATA section.
[Wed Oct 23 08:10:55 2013] [debug] 200 OK (0.026958s, 37.095/s).
[Wed Oct 23 08:10:56 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:56 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:56 2013] [debug] 200 OK (0.012572s, 79.542/s).
[Wed Oct 23 08:10:57 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:57 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:57 2013] [debug] 200 OK (0.012591s, 79.422/s).
[Wed Oct 23 08:10:58 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:58 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:58 2013] [debug] 200 OK (0.012799s, 78.131/s).
[Wed Oct 23 08:10:59 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:59 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:59 2013] [debug] 200 OK (0.019006s, 52.615/s).
[Wed Oct 23 08:11:00 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:00 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:11:00 2013] [debug] 200 OK (0.022975s, 43.526/s).
[Wed Oct 23 08:11:01 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:01 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
...and on...and on...I got the idea from the documentation that when you
set the log level to a particular value, it shows all messages below that
level - i.e. fatal shows debug messages, info messages, etc. What I need is
to know how to now show any messages whatsoever...
Lance
Post by Allan Cochrane
Post by Lance Gropper
MOJO_LOG_LEVEL can not be found as an environment variable. Also, the
doc doesn't say how to shut off the log - it only shows how to manually
create additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?
Lance
Hi,
You have to set the MOJO_LOG_LEVEL env, var. before starting morbo, try
export MOJO_LOG_LEVEL=fatal
in your shell, that should turn off all but fatal errors.
Alternatively, you can create a new instance of a logger and tell the
my $log = Mojo::Log->new(path => '/var/log/mojo.log', level => 'fatal'); # new log instance
$self->log($log); # tell app to use new log instance
I suppose if you wanted to turn off logging completely you could set the
path to /dev/null, but I find that the messages from morbo are useful
during development. You should probably look at hypnotoad for use in
production.
Allan
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email** and
any attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Lance Gropper
2013-10-23 15:27:32 UTC
Permalink
I know perl - I defined $self, and the web page no longer renders. I am
switching to a competitors' PERL web server, as you don't know how to make
one which is non-blocking and doesn't eventually fill up the boot drive or
fill the console with non-stop error messages.



On Wed, Oct 23, 2013 at 8:25 AM, áÌÅËÓÁÎÄÒ çÒÏÛÅ× <
Post by Александр Грошев
You must define $self. Learn perl!
Post by Lance Gropper
When I try the second method, I get errors indicating $self is not
defined or requires a package name.
Lance
Post by Statue
Server available at http://127.0.0.1:80.
passphrase needs to be changed!!!
[Wed Oct 23 08:10:55 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:55 2013] [debug] Rendering template "index.html.ep"
from DATA section.
[Wed Oct 23 08:10:55 2013] [debug] 200 OK (0.026958s, 37.095/s).
[Wed Oct 23 08:10:56 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:56 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:56 2013] [debug] 200 OK (0.012572s, 79.542/s).
[Wed Oct 23 08:10:57 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:57 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:57 2013] [debug] 200 OK (0.012591s, 79.422/s).
[Wed Oct 23 08:10:58 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:58 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:58 2013] [debug] 200 OK (0.012799s, 78.131/s).
[Wed Oct 23 08:10:59 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:59 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:59 2013] [debug] 200 OK (0.019006s, 52.615/s).
[Wed Oct 23 08:11:00 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:00 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:11:00 2013] [debug] 200 OK (0.022975s, 43.526/s).
[Wed Oct 23 08:11:01 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:01 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
...and on...and on...I got the idea from the documentation that when you
set the log level to a particular value, it shows all messages below that
level - i.e. fatal shows debug messages, info messages, etc. What I need is
to know how to now show any messages whatsoever...
Lance
Post by Allan Cochrane
Post by Lance Gropper
MOJO_LOG_LEVEL can not be found as an environment variable. Also, the
doc doesn't say how to shut off the log - it only shows how to manually
create additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?
Lance
Hi,
You have to set the MOJO_LOG_LEVEL env, var. before starting morbo, try
export MOJO_LOG_LEVEL=fatal
in your shell, that should turn off all but fatal errors.
Alternatively, you can create a new instance of a logger and tell the
my $log = Mojo::Log->new(path => '/var/log/mojo.log', level => 'fatal'); # new log instance
$self->log($log); # tell app to use new log instance
I suppose if you wanted to turn off logging completely you could set
the path to /dev/null, but I find that the messages from morbo are useful
during development. You should probably look at hypnotoad for use in
production.
Allan
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email** and
any attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Lance Gropper
2013-10-23 15:32:46 UTC
Permalink
Can you at least tell me the location where it saved the default ~4GB log
file which is already there?



On Wed, Oct 23, 2013 at 8:27 AM, Lance Gropper
Post by Lance Gropper
I know perl - I defined $self, and the web page no longer renders. I am
switching to a competitors' PERL web server, as you don't know how to make
one which is non-blocking and doesn't eventually fill up the boot drive or
fill the console with non-stop error messages.
On Wed, Oct 23, 2013 at 8:25 AM, áÌÅËÓÁÎÄÒ çÒÏÛÅ× <
Post by Александр Грошев
You must define $self. Learn perl!
Post by Lance Gropper
When I try the second method, I get errors indicating $self is not
defined or requires a package name.
Lance
Post by Statue
Server available at http://127.0.0.1:80.
passphrase needs to be changed!!!
[Wed Oct 23 08:10:55 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:55 2013] [debug] Rendering template "index.html.ep"
from DATA section.
[Wed Oct 23 08:10:55 2013] [debug] 200 OK (0.026958s, 37.095/s).
[Wed Oct 23 08:10:56 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:56 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:56 2013] [debug] 200 OK (0.012572s, 79.542/s).
[Wed Oct 23 08:10:57 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:57 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:57 2013] [debug] 200 OK (0.012591s, 79.422/s).
[Wed Oct 23 08:10:58 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:58 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:58 2013] [debug] 200 OK (0.012799s, 78.131/s).
[Wed Oct 23 08:10:59 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:10:59 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:10:59 2013] [debug] 200 OK (0.019006s, 52.615/s).
[Wed Oct 23 08:11:00 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:00 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
[Wed Oct 23 08:11:00 2013] [debug] 200 OK (0.022975s, 43.526/s).
[Wed Oct 23 08:11:01 2013] [debug] GET / (Mozilla/5.0 (Windows NT 6.3;
Win64; x64; Trident/7.0; rv:11.0) like Gecko).
[Wed Oct 23 08:11:01 2013] [debug] Rendering cached template
"index.html.ep" from DATA section.
...and on...and on...I got the idea from the documentation that when
you set the log level to a particular value, it shows all messages below
that level - i.e. fatal shows debug messages, info messages, etc. What I
need is to know how to now show any messages whatsoever...
Lance
Post by Allan Cochrane
Post by Lance Gropper
MOJO_LOG_LEVEL can not be found as an environment variable. Also, the
doc doesn't say how to shut off the log - it only shows how to manually
create additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?
Lance
Hi,
You have to set the MOJO_LOG_LEVEL env, var. before starting morbo, try
export MOJO_LOG_LEVEL=fatal
in your shell, that should turn off all but fatal errors.
Alternatively, you can create a new instance of a logger and tell the
my $log = Mojo::Log->new(path => '/var/log/mojo.log', level => 'fatal'); # new log instance
$self->log($log); # tell app to use new log instance
I suppose if you wanted to turn off logging completely you could set
the path to /dev/null, but I find that the messages from morbo are useful
during development. You should probably look at hypnotoad for use in
production.
Allan
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email*
* and any attachments is strictly prohibited. If you receive **this** **
email** in error, please immediately notify the sender by return **email
** and permanently delete the original, any copy and any printout
thereof. The integrity and security of e-mail cannot be guaranteed. If this
email has been forwarded, it may have been altered, invalidating the
content.*
--
You received this message because you are subscribed to the Google
Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email** and
any attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Sebastian Riedel
2013-10-23 15:42:49 UTC
Permalink
Post by Lance Gropper
I know perl - I defined $self, and the web page no longer renders. I am
switching to a competitors' PERL web server, as you don't know how to make
one which is non-blocking and doesn't eventually fill up the boot drive or
fill the console with non-stop error messages.
Please don't be rude and have a little more patience waiting for answers (a
good answer can often take days), spamming a topic and deep quoting have a
tendency to scare people away that might otherwise have answered.

P.S.: "PERL" is not a thing, the language is called "Perl" and the
executable "perl".
--
Sebastian Riedel
http://mojolicio.us
http://github.com/kraih
http://twitter.com/kraih
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Lance Gropper
2013-10-23 15:52:50 UTC
Permalink
Hello Sebastian:

I responded to Alexanders' message - it was rude. He called it 'perl'. I
wanted to thank you for all of the help you have given me. I just wished
others were as willing to help and/or understanding that I haven't seen
Mojolicious until about a month ago, and am a beginner. I have written
several operating systems in PERL, and was looking to have my next one
running under Mojo, but now I'm in a real time-crunch, and really blow my
top when I see responses where I ask for help, someone provides answers
that aren't working (at least for me), then tells me to learn something
(akin to telling me to jump off a cliff). There were some things I really
liked about Mojolicious, that this other server I am going to have to
switch to doesn't do - I liked how easily you could mix PERL, HTML, and CSS
code. But I didn't like how it was blocking and I had to jump through hoops
to do some of it (you helped me through most of that). The other problem is
this debugging message thing. I appreciate that it helps developers find
problems, but it is something that should not be enabled by default. When
systems are being deployed with Mojo on it, it becomes more of a hindrance
than help at that point.

Lance
Post by Lance Gropper
I know perl - I defined $self, and the web page no longer renders. I am
Post by Lance Gropper
switching to a competitors' PERL web server, as you don't know how to make
one which is non-blocking and doesn't eventually fill up the boot drive or
fill the console with non-stop error messages.
Please don't be rude and have a little more patience waiting for answers
(a good answer can often take days), spamming a topic and deep quoting have
a tendency to scare people away that might otherwise have answered.
P.S.: "PERL" is not a thing, the language is called "Perl" and the
executable "perl".
--
Sebastian Riedel
http://mojolicio.us
http://github.com/kraih
http://twitter.com/kraih
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
sri
2013-10-23 17:00:30 UTC
Permalink
Post by Александр Грошев
Learn perl!
Please refrain from rude remarks like this one in the future.

--
sebastian
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Lance Gropper
2013-10-23 17:01:24 UTC
Permalink
I didn't use that remark - Alexander did...
Post by Александр Грошев
Learn perl!
Please refrain from rude remarks like this one in the future.
--
sebastian
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Lance Gropper
2013-10-23 18:03:15 UTC
Permalink
Hello Sebastian:

Sri told me to start a different subject, because it was different
from this one, which I did, and in that thread, Alexander posted:

"Add star
Александр Грошев
<***@gmail.com> Wed, Oct 23, 2013 at 8:25 AM
Reply-To: ***@googlegroups.com
To: ***@googlegroups.com

Reply | Reply to all | Forward | Print | Delete | Show original



You must define $self. Learn perl!

23.10.2013 19:20 пользователь "Lance Gropper"
<***@gmail.com> написал:


- Show quoted text -
You received this message because you are subscribed to the Google
Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.

- Show quoted text -
"

Lance
Post by Lance Gropper
I didn't use that remark - Alexander did...
Post by Александр Грошев
Learn perl!
Please refrain from rude remarks like this one in the future.
--
sebastian
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/8-vczEexC7E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Александр Грошев
2013-10-23 18:25:10 UTC
Permalink
Sorry. I will refrain from such comments in the future. But his way to
search of help forced me to make that comment.
Post by Александр Грошев
Learn perl!
Please refrain from rude remarks like this one in the future.
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Sebastian Riedel
2013-10-23 18:47:25 UTC
Permalink
Post by Александр Грошев
Sorry. I will refrain from such comments in the future. But his way to
search of help forced me to make that comment.
I understand, and am starting to suspect he might be trolling us.
--
Sebastian Riedel
http://mojolicio.us
http://github.com/kraih
http://twitter.com/kraih


On Wed, Oct 23, 2013 at 8:25 PM, áÌÅËÓÁÎÄÒ çÒÏÛÅ× <
Post by Александр Грошев
Sorry. I will refrain from such comments in the future. But his way to
search of help forced me to make that comment.
Post by Александр Грошев
Learn perl!
Please refrain from rude remarks like this one in the future.
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
Sebastian Riedel
http://mojolicio.us
http://github.com/kraih
http://twitter.com/kraih
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
sri
2013-10-23 18:53:14 UTC
Permalink
Please consider the two threads mentioned in this discussion closed.

--

Lance Gropper
2013-10-23 15:09:31 UTC
Permalink
Anyone? When I type env, I get:

HOSTNAME=raidix
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=192.168.1.67 64367 22
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
PWD=/root
LANG=en_US.UTF-8
HISTCONTROL=ignoredups
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=192.168.1.67 64367 192.168.1.129 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
- there are no Mojolicious env values.

Lance


On Tue, Oct 22, 2013 at 4:50 PM, Lance Gropper
Post by Lance Gropper
MOJO_LOG_LEVEL can not be found as an environment variable. Also, the doc
doesn't say how to shut off the log - it only shows how to manually create
additional log messages, and how to create a second log.
Additionally, where does it log the messages to by default?
Lance
Hi,
the environment variable MOJO_LOG_LEVEL might help here, it can control
the logger level. Alternatively make a directory called 'log' from where
you start morbo and it *ought* to write to a development.log file in that
directory.
allan
Got a different type of question: My app is running in real-time - this
causes a lot of morbo info and debug messages - is there a way to disable
the messages?
Lance
Problem was my bad - the original PERL variable assignment was in an if
statement that wasn't evaluating correctly for some other reason (value
that probably needed to be chopped). Thanks again guys.
Wait - I think I found the problem...Still checking...
I tried converting it to a string - also made no difference...
On Wed, Oct 16, 2013 at 10:59 AM, Lance Gropper <
No difference...
Lance
On Wed, Oct 16, 2013 at 10:58 AM, áÌÅËÓÁÎÄÒ çÒÏÛÅ× <
Try
left: <%= $model =%>%
16.10.2013 21:53 ÐÏÌØÚÏ×ÁÔÅÌØ "Lance Gropper" <
Works fine in the HTML code, just doesn't seem to work in the
CSS code. Also, I tried a different approach which didn't work for some
reason. I tried putting all of the PERL code outside of the __DATA__, then
using it to generate the HTML, putting it all into a single string and
putting that into the data statement - that also didn't work, but it was
too complicated to figure out why. The reason I was doing that is I wanted
to make my code run under Mojo, as well as Webmin.
On Wed, Oct 16, 2013 at 10:50 AM, Stefan Adams <
On Wed, Oct 16, 2013 at 12:47 PM, Lance Gropper <
There's no space between the 80 and the %, and I tried it with
<%= $model %> % (with space) - no difference.
There should be no space, to my knowledge. So that's bizarre
that it isn't working. I was thinking maybe there was a space and that was
keeping it from working.
On Wed, Oct 16, 2013 at 10:45 AM, Stefan Adams <
On Wed, Oct 16, 2013 at 12:43 PM, Lance Gropper <
I have another question: I'm trying to alter CSS code in mojo
left: 80%
left: <%= $model %>%
What did I do wrong?
Look at the source... Is there a space between 80 and % ?
--
You received this message because you are subscribed to a topic
in the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/**topic/mojolicious/1nEI90NiWj4/**
unsubscribe<https://groups.google.com/d/topic/mojolicious/1nEI90NiWj4/unsubscribe>
.
To unsubscribe from this group and all its topics, send an email
Visit this group at http://groups.google.com/**group/mojolicious<http://groups.google.com/group/mojolicious>
.
For more options, visit https://groups.google.com/**
groups/opt_out <https://groups.google.com/groups/opt_out>.
--
*This** e-mail and any attachments are intended only for use by
the addressee(s) named herein and may contain confidential information. If
you are not the intended recipient of **this** e-mail, you are
hereby notified any dissemination, distribution or copying of **
this** **email** and any attachments is strictly prohibited. If
you receive **this** **email** in error, please immediately
notify the sender by return **email** and permanently delete the
original, any copy and any printout thereof. The integrity and security of
e-mail cannot be guaranteed. If this email has been forwarded, it may have
been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google
Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it,
Visit this group at http://groups.google.com/**group/mojolicious<http://groups.google.com/group/mojolicious>
.
For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
.
--
You received this message because you are subscribed to a topic in
the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/*
*topic/mojolicious/1nEI90NiWj4/**unsubscribe<https://groups.google.com/d/topic/mojolicious/1nEI90NiWj4/unsubscribe>
.
To unsubscribe from this group and all its topics, send an email
Visit this group at http://groups.google.com/**group/mojolicious<http://groups.google.com/group/mojolicious>
.
For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **
email** and any attachments is strictly prohibited. If you receive *
*this** **email** in error, please immediately notify the sender by
return **email** and permanently delete the original, any copy and
any printout thereof. The integrity and security of e-mail cannot be
guaranteed. If this email has been forwarded, it may have been altered,
invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **
email** and any attachments is strictly prohibited. If you receive **
this** **email** in error, please immediately notify the sender by
return **email** and permanently delete the original, any copy and
any printout thereof. The integrity and security of e-mail cannot be
guaranteed. If this email has been forwarded, it may have been altered,
invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **
email** and any attachments is strictly prohibited. If you receive **
this** **email** in error, please immediately notify the sender by
return **email** and permanently delete the original, any copy and
any printout thereof. The integrity and security of e-mail cannot be
guaranteed. If this email has been forwarded, it may have been altered,
invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email
** and any attachments is strictly prohibited. If you receive **this**
**email** in error, please immediately notify the sender by return **
email** and permanently delete the original, any copy and any printout
thereof. The integrity and security of e-mail cannot be guaranteed. If this
email has been forwarded, it may have been altered, invalidating the
content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email*
* and any attachments is strictly prohibited. If you receive **this** **
email** in error, please immediately notify the sender by return **email
** and permanently delete the original, any copy and any printout
thereof. The integrity and security of e-mail cannot be guaranteed. If this
email has been forwarded, it may have been altered, invalidating the
content.*
--
You received this message because you are subscribed to a topic in the
Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/mojolicious/1nEI90NiWj4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby
notified any dissemination, distribution or copying of **this** **email** and
any attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
*This** e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If you
are not the intended recipient of **this** e-mail, you are hereby notified
any dissemination, distribution or copying of **this** **email** and any
attachments is strictly prohibited. If you receive **this** **email** in
error, please immediately notify the sender by return **email** and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed. If this email has
been forwarded, it may have been altered, invalidating the content.*
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...